<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <div id='app'>
    <!-- v-show的盒子通过控制的是display = none 去设置的 -->
    <div v-show='true'>我是v-show控制的盒子</div>
    <div v-if='true'>我是v-if控制的盒子</div>


  </div>
  <script src="../vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        flag: false
      }
    })
  </script>
</body>

</html>